package com.md.strategy.impl.format;

import com.md.strategy.ValueFormatter;
import com.md.util.DateUtils;

import java.util.Date;

/**
 * @author 刘骄阳
 * 2024-02-07 11:35
 */
public final class DateFormatter implements ValueFormatter<Date> {
  public static final DateFormatter INSTANCE = new DateFormatter();

  private DateFormatter() {

  }

  @Override
  public String format(final Date value) {
    return DateUtils.format(value);
  }
}
